/**
 * 湖南总结算
 * Created by duwei on 2018/5/25.
 */
var Ma_ZongJieSuanHuNanWindow = Ma_ZongJieSuanWindow.extend({
    _ccsFileName:majiang_hn.res.Ma_ZongJieSuanHuNanWindow_json,
    /**
     * 初始化界面
     * @private
     */
    _initInfo: function () {
        var self = this;
        this._super();
        for (var i = 0; i < self._data.players.length; i++) {
            var player = self._data.players[i];
            var uid = player['uid'];
            var maxScore = player['score'];
            if(self.maxScore == maxScore){
                if (self._data['cur_round'] == self._data['total_round'] && gameData.opt_conf.zhongqiu == 1) {
                    if(typeof activityZhongqiu == 'function')  activityZhongqiu(app.area, gameData.roomId, self._data['ts'], uid);
                } else if (gameData.opt_conf.zhongqiu == 2) { // 测试不需要打满
                    if(typeof activityZhongqiu == 'function')  activityZhongqiu(app.area, gameData.roomId, self._data['ts'], uid);
                }
            }
        }


    },
});